Skip to content

feat(provider-apps): create provider apps from CLI - #323

Open
caiopizzol wants to merge 1 commit into
amp-labs:mainfrom
caiopizzol:feat/create-provider-app-pr
Open

feat(provider-apps): create provider apps from CLI#323
caiopizzol wants to merge 1 commit into
amp-labs:mainfrom
caiopizzol:feat/create-provider-app-pr

Conversation

@caiopizzol

Copy link
Copy Markdown
Contributor

Provider apps previously had to be added outside the CLI, which interrupted CLI-first onboarding after project creation.

This adds amp create:provider-app <provider>. It accepts the OAuth client ID and scopes as flags, and reads the client secret from a masked prompt or stdin. The command blocks debug mode and never prints the client ID or secret.

Tests cover the API request, project selection, repeated scopes, stdin validation, and credential-safe output.

Validation:

  • go test ./...
  • go vet ./...
  • go build ./...
  • golangci-lint v2.9.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant